<template>
  <el-form label-width="100px">
    <CommonProps :compWidth="false" :placeholder="false" />
    <el-form-item label="默认值">
      <el-input-number v-model="fs.getProps().defaultVal" :max="fs.getProps().max" controls-position="right" />
    </el-form-item>
    <el-form-item label="最大值">
      <el-input-number v-model="fs.getProps().max" :min="2" controls-position="right" />
    </el-form-item>
    <el-form-item label="允许半选">
      <el-switch v-model="fs.getProps().allowHalf" />
    </el-form-item>
    <CommonPropsTwo :readonly="false" />
  </el-form>
</template>

<script setup lang="ts">
import CommonProps from '../../common-props/Props.vue'
import CommonPropsTwo from '../../common-props/PropsTwo.vue'
import { ElForm, ElFormItem, ElInputNumber, ElSwitch } from 'element-plus'
import { useFlowStore } from '@/stores/flow'

const fs = useFlowStore()
</script>

<style lang="scss" scoped></style>
